package net.mujiwulian.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.web.multipart.MultipartFile;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @Author: silence
 * @Description:
 * @Date:Create：in 2019/12/28 19:24
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "acupoint")
public class Acupoint implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 穴位名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * 类型id
     */
    @TableField(value = "type_id")
    private Integer typeId;

    /**
     * 视频地址
     */
    @TableField(value = "video_url")
    private String videoUrl;

    /**
     * 图片地址
     */
    @TableField(value = "img_url")
    private String imgUrl;

    /**
     * 取穴法
     */
    @TableField(value = "method")
    private String method;

    /**
     * 定位
     */
    @TableField(value = "location")
    private String location;

    /**
     * 主治病症
     */
    @TableField(value = "disease")
    private String disease;

    /**
     * 艾灸参数
     */
    @TableField(value = "parameter")
    private String parameter;

    /**
     * 经验应用
     */
    @TableField(value = "experience")
    private String experience;

    /**
     * 防病健身
     */
    @TableField(value = "defend")
    private String defend;

    /**
     * 添加时间
     */
    @TableField(value = "create_time")
    private LocalDateTime createTime;

    private static final long serialVersionUID = 1L;

    @TableField(exist = false)
    private MultipartFile img;
}
